package com.example.Testclass;

public class Student extends Person {
    //子类特有的属性
    private int score;

    /*public Student() {
        super();//默认隐藏
        //System.out.println(num);
        System.out.println("子类的空参构造方法。。。");
    }

    public Student(int score) {
        this.score = score;
        System.out.println("子类的带参构造方法111");
    }*/

    public Student() {
        super();
    }

    public Student(String name, int age, int score) {
        super(name, age);
        this.score = score;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }
}
